package com.example.demo20250926;

import com.example.girlfriendspringbootstarter.service.GirlFriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Demo20250926Application implements CommandLineRunner{

    public static void main(String[] args) {
        SpringApplication.run(Demo20250926Application.class, args);
    }
    @Autowired
    private GirlFriendService girlFriendService;

    @Override
    public void run(String... args) throws Exception {
        // 调用打招呼方法
        girlFriendService.say();
    }

}
